package day010.homework.p3;

public class Clerk extends Employee {
    private Manager manager;

    public Clerk() {
    }

    public Clerk(String name, String workId, String dept, Manager manager) {
        super(name, workId, dept);
        this.manager = manager;
    }

    public Manager getManager() {
        return manager;
    }

    public void setManager(Manager manager) {
        this.manager = manager;
    }

    @Override
    public void showMsg() {
        System.out.println(this.getDept() + "的:" + this.getName() + "，员工编号："
                + this.getWorkId() + "\n" + "他的经理是：" + manager.getName());
    }
}
